package com.lack.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lack.openApicommon.model.entity.UserInterfaceInfo;

/**
 * @author qings
 * @description 针对表【user_interface_info(用户接口关系表)】的数据库操作Service
 * @createDate 2024-08-26 16:07:03
 */
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean add);

    /**
     * 统计调用次数
     *
     * @param interFaceInfoId
     * @param userId
     * @return
     */
    boolean invokeCount(long interFaceInfoId, long userId);

    UserInterfaceInfo getUserInterfaceInfo(long interfaceInfoId, long userId);
}
